package com.zhejiangzhengyuan.municipal_common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.sql.Timestamp;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 字典条目项，作为字典表的子集，也是整个字典表的一部分
 * </p>
 *
 * @author linju
 * @since 2019-11-22
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="DictionaryItem对象", description="字典条目项，作为字典表的子集，也是整个字典表的一部分")
public class DictionaryItem extends Model<DictionaryItem> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private Long selfParentId;

    private Long dictionaryId;

    private String itemName;

    private String itemCode;

    private String itemDesc;

    private Timestamp createTime;

    private Timestamp updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
